package com.framework.buss.config;

import com.zhipu.oapi.ClientV4;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zzg
 * @date 2025-1-27 15:43
 */
@Configuration
public class ZpAiClientConfig {
    @Value("${ai.apiKey: }")
    private String apiKey;

    @Bean
    public ClientV4 clientV4() {
        ClientV4 client = new ClientV4.Builder(apiKey).build();
        return client;
    }
}
